<?php
	require "../dao/staff_dao.php";
	
	$teacher = [];
	$teacher['tid'] = $_POST['tid'];
	$teacher['tname'] = $_POST['tname'];
	$teacher['tnumber'] = $_POST['tnumber'];
	$teacher['tsex'] = $_POST['tsex'];
	$teacher['tcollegeid'] = $_POST['tcollegeid'];
	$teacher['tcourse'] = $_POST['tcourse'];
	$teacher['tphone'] = $_POST['tphone'];
	$teacher['tdesc'] = $_POST['tdesc'];
	$teacher['tnative'] = $_POST['tnative'];
	$teacher['tidnumber'] = $_POST['tidnumber'];
	$teacher['tattr'] = $_POST['tattr'];

	$flag = updateTea($teacher);
	if($flag){
?>
		<script>
			alert("修改成功。。。");
			location.href = "../Select/selectTea_infor.php";
		</script>
<?php
	}else{
?>
		<script>
			alert("修改失败。。。");
			location.href = "../Select/selectTea_infor.php";
		</script>
<?php
	}
?>